<%--
    그리드 라이브러리(jqGrid) 
--%><%@ page contentType="text/html; charset=utf-8"
%><%@ page import="com.cfw.util.HttpUtil" 
%><%
    String locale = HttpUtil.getLocaleString(request);
%><link rel="stylesheet" type="text/css" media="screen" href="${pageContext.request.contextPath}/js/jquery/jqgrid/css/ui.jqgrid.css" />
<%-- <script src="${pageContext.request.contextPath}/js/jquery/jqgrid/js/grid.locale-kr.js" type="text/javascript"></script> --%>
<script src="${pageContext.request.contextPath}/js/jquery/jqgrid/js/grid.locale-<%= locale %>.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/jquery/jqgrid/js/jquery.jqGrid.src.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/js/common/grid-util.js" type="text/javascript"></script>
<script type="text/javascript">
$.extend($.jgrid.defaults, {
    rowNum: 20, // Sets how many records we want to view in the grid.
	rowList:[10, 20, 50, 100], // An array to construct a select box element in the pager in which we can change the number of the visible rows.
    autowidth: true, // When set to true, the grid width is recalculated automatically to the width of the parent element. 
                     // This is done only initially when the grid is created. 
                     // In order to resize the grid when the parent element changes width you should apply custom code and use the setGridWidth method for this purpose
    viewrecords: true, // If true, jqGrid displays the beginning and ending record number in the grid, out of the total number of records in the query
    gridview: true, // jquery를 이용한 일괄 행추가, 속도개선의 잇점이 있으나 treeGrid, subGrid, afterInsertRow event를 사용하지 못함
    autoencode: false // When set to true encodes (html encode) the incoming (from server) and posted data (from editing modules). For example < will be converted to &lt;.
}); // jqgrid global 기본값 설정
</script>